package testingtool.number;

import java.math.BigDecimal;

public class BigDecimalTest {

	public static void main(String[] args) {

		BigDecimal freeSpace = new BigDecimal(4368709120L);

		BigDecimal allocated = BigDecimal.valueOf(5368709120L);
		
		BigDecimal divide = freeSpace.divide(allocated);

		System.out.println(allocated);
		
		System.out.println(divide.multiply(new BigDecimal(100)));
		System.out.println(divide);
		
		System.out.println(freeSpace.add(allocated));
	}
}
